package com.weishu.core.service.impl;

import com.github.pagehelper.PageInfo;
import com.weishu.core.entity.CwCheckBatchDetail;
import com.weishu.core.mapper.CwCheckBatchDetailMapper;
import com.weishu.core.service.ICwCheckBatchDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 对账批次明细表（保存对账结果明细的表） 服务实现类
 * </p>
 *
 * @author zgx
 * @since 2021-10-19
 */
@Service
public class CwCheckBatchDetailServiceImpl extends ServiceImpl<CwCheckBatchDetailMapper, CwCheckBatchDetail> implements ICwCheckBatchDetailService {

    @Autowired
    private CwCheckBatchDetailMapper cwCheckBatchDetailMapper;

    /**
     * 对账明细查询
     * @param cwCheckBatchDetail 对账明细信息
     * @return
     */
    @Override
    public PageInfo<CwCheckBatchDetail> getList(CwCheckBatchDetail cwCheckBatchDetail) {
        List<CwCheckBatchDetail> list = cwCheckBatchDetailMapper.getList(cwCheckBatchDetail);
        PageInfo<CwCheckBatchDetail> pageInfo = new PageInfo<>(list);
        return pageInfo;
    }
}
